package com.example.xianji.activity;

import com.example.xianji.R;
import com.example.xianji.widgets.X5WebView;
import com.tencent.smtt.sdk.CookieSyncManager;

import android.os.Bundle;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.app.Activity;
import android.view.WindowManager;
/**
 * 企业宝典webview去下载企业宝典APk
 * @author me
 *
 */
public class Main_QiYeBaoDianWebViewActivity extends Activity {
	private X5WebView qiyebaodian_webview;
	private String URL="http://m.xianjichina.com/doing_appdownqybd";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
			getWindow().addFlags(
					WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
			getWindow().addFlags(
					WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
		}
		setContentView(R.layout.activity_main__qi_ye_bao_dian_web_view);
		
		qiyebaodian_webview=(X5WebView) findViewById(R.id.qiyebaodian_webview);
		CookieSyncManager.createInstance(this);
		CookieSyncManager.getInstance().sync();
		qiyebaodian_webview.loadUrl(URL);
	}

	

}
